package com.car.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("stock_log")
public class StockLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    @TableField("stock_id")
    private Integer stockId;

    @TableField("change_quantity")
    private String changeQuantity;

    /**
     * 变动类型，如进货、销售、退货等
     */
    @TableField("change_type")
    private Integer changeType;

    @TableField("modify_time")
    private String modifyTime;

    @TableField("admin_id")
    private Integer adminId;

    @TableField("admin_name")
    private String adminName;
}
